package com.campus.common.exception;

public class SystemException extends RuntimeException {
    private SystemExceptionCode code;
    public SystemException(SystemExceptionCode code) {
        super(code.getDesc());
        this.code = code;
    }
    public SystemExceptionCode getCode() {
        return code;
    }
    /**
     *  不写入堆栈信息， 提高性能
     */
    @Override
    public synchronized Throwable fillInStackTrace() {
        return this;
    }
}